home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPSETUP.ZIP / APPSTART.C < prev    next >
C/C++ Source or Header  |  1993-02-07  |  661b  |  33 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #include "appsetup.h"
  8.  
  9. /*-------------------------------------------------------------------------*/
  10. BOOL WINAPI RestartDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
  11.     {
  12.     switch(message)
  13.     {
  14.     case WM_INITDIALOG:
  15.         return TRUE;
  16.  
  17.     case WM_COMMAND:
  18.         switch(wParam)
  19.         {
  20.         case IDRESTART_YES:
  21.             EndDialog(hDlg, 0);
  22.             ExitWindows(EW_RESTARTWINDOWS, 0);
  23.             return TRUE;
  24.  
  25.         case IDRESTART_NO:
  26.             EndDialog(hDlg, 0);
  27.             return TRUE;
  28.         }
  29.         break;
  30.     }
  31.     return FALSE;
  32.     }
  33.